function ViewFile(id,url,folder,vfile){
	if(document.getElementById){var x=(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();}
    if(x){x.onreadystatechange=function() {
        el=document.getElementById(id); 
        el.innerHTML='loading....';
        if(x.readyState==4&&x.status==200){
            el.innerHTML=''; 
            el=document.getElementById(id);
            el.innerHTML=x.responseText; 
            //eval(eval_str);
            }
        }
    x.open("GET",url+'?folder='+folder+'&file='+vfile,true);x.send(null);
    }
}

function CheckConfirm(strcfm)
{
	if (confirm(strcfm))
		return true;
	else
		return false;
}
function GoUrl(url)
{
	window.location.href=url;
}
function SelectFile(obj,file)
	{
		window.opener.document.getElementById(obj).value=file;
		window.close();		
	}
